package Java练习.面向对象综合练习.继承.练习;

public class Person {
    private String workID;
    private String name;
    private double workMOney;

    public Person() {
    }

    public Person(String workID, String name, double workMOney) {
        this.workID = workID;
        this.name = name;
        this.workMOney = workMOney;
    }

    public String getWorkID() {
        return workID;
    }

    public void setWorkID(String workID) {
        this.workID = workID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWorkMOney() {
        return workMOney;
    }

    public void setWorkMOney(double workMOney) {
        this.workMOney = workMOney;
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public void work() {
        System.out.println("工作");
    }

}